const constantRoutes = [{
        path: "/",
        redirect: "/login"
    },
    {
        path: '/login',
        name: "login",
        component: resolve => require(['../views/Login.vue'], resolve)
    },

    {
        path: '/register',
        name: "register",
        component: resolve => require(['../views/register.vue'], resolve)
    },
    {
        path: "/home",
        name: 'home',
        component: resolve => require(['../views/Home.vue'], resolve),
        children: [{
            path: '/index',
            name: 'index',
            component: resolve => require(['../views/Index.vue'], resolve),
        }]
    },
    {
        path: '/404',
        component: resolve => require(['../views/404.vue'], resolve),
    },
]

export default constantRoutes